package com.xintonghua.bussiness.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 作者：wanxianyi
 * 时间：2018/3/31.
 * 包名：com.xintonghua.bussiness.bean
 */

public class GoodsItemBean implements Parcelable {

    /**
     * money : 65
     * detail_img : null
     * name : 海飞丝去屑止痒
     * count : 0
     * id : 2
     * stock_type_id : 1
     */

    private double money;
    private String detail_img;
    private String name;
    private int count;
    private int id;
    private int stock_type_id;

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public String getDetail_img() {
        return detail_img;
    }

    public void setDetail_img(String detail_img) {
        this.detail_img = detail_img;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getStock_type_id() {
        return stock_type_id;
    }

    public void setStock_type_id(int stock_type_id) {
        this.stock_type_id = stock_type_id;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeDouble(this.money);
        dest.writeString(this.detail_img);
        dest.writeString(this.name);
        dest.writeInt(this.count);
        dest.writeInt(this.id);
        dest.writeInt(this.stock_type_id);
    }

    public GoodsItemBean() {
    }

    protected GoodsItemBean(Parcel in) {
        this.money = in.readDouble();
        this.detail_img = in.readString();
        this.name = in.readString();
        this.count = in.readInt();
        this.id = in.readInt();
        this.stock_type_id = in.readInt();
    }

    public static final Parcelable.Creator<GoodsItemBean> CREATOR = new Parcelable.Creator<GoodsItemBean>() {
        @Override
        public GoodsItemBean createFromParcel(Parcel source) {
            return new GoodsItemBean(source);
        }

        @Override
        public GoodsItemBean[] newArray(int size) {
            return new GoodsItemBean[size];
        }
    };
}
